package cn.edu.nju.software.greencreditsystem.domain;

import javax.persistence.*;

/**
 * 作者：何启睿
 * 创建时间：2011-8-11
 * 类描述：财务指标标准值
 */
@Entity
@Table(name="financial_standard_value")
public class FinancialStandardValue
{
    public static int STANDARD = 0;
    public static int CHANGE = 1;
    
    private int id;
    private FinancialFactor factor;
    private double value;
    private int type;//0，标准值  1，变动值
    private boolean largeBetter;

    
    @Id
    @GeneratedValue
    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public double getValue()
    {
        return value;
    }

    public void setValue(double value)
    {
        this.value = value;
    }

    @ManyToOne
    public FinancialFactor getFactor()
    {
        return factor;
    }

    public void setFactor(FinancialFactor factor)
    {
        this.factor = factor;
    }

    public boolean getLargeBetter()
    {
        return largeBetter;
    }

    public void setLargeBetter(boolean largeBetter)
    {
        this.largeBetter = largeBetter;
    }

    public int getType()
    {
        return type;
    }

    public void setType(int type)
    {
        this.type = type;
    }
}
